package cn.bonoon.kernel.query;

import cn.bonoon.kernel.util.Opt;

public final class SearchParameter {
	private final String name;
	private String searchName;
	private Object value;
	private SearchParameter next;
	private boolean or = false;
	private Opt opt;

	public SearchParameter(String name) {
		this.name = name;
	}

	public SearchParameter(String name, Object value) {
		this.name = name;
		this.value = value;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public SearchParameter getNext() {
		return next;
	}

	public void setNext(SearchParameter next) {
		this.next = next;
	}

	public boolean isOr() {
		return or;
	}

	public void setOr(boolean or) {
		this.or = or;
	}

	public Opt getOpt() {
		return opt;
	}

	public void setOpt(Opt opt) {
		this.opt = opt;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}
}
